#include "includes.h"


#ifdef USE_WDT
void WdtInit(uint8_t tm)
{
	uint8_t tmp;
	
	tmp = IE0;
	EA = 0;
	TA = 0xAA;
	TA = 0x55;
	WDTCON = tm;
	IE0 = tmp;
}

void WdtDis(void)
{
	uint8_t tmp;
	
	tmp = IE0;
	EA = 0;
	TA = 0xAA;
	TA = 0x55;
	WDTCON = 0x00;
	IE0 = tmp;
}

void WdtFed(void)
{
	uint8_t tmp;
	tmp = RSTCON;
}

#endif	//USE_WDT



















